package com.lwphk.easydocs.core;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.env.Environment;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;

import com.alibaba.fastjson.JSON;
import com.lwphk.easydocs.core.vo.DocsBasicInfo;
import com.lwphk.easydocs.ui.DocsUIHandler;

public class BasicParseHandler {

	
	private static final Logger log = LoggerFactory.getLogger(BasicParseHandler.class);
	
	ParseRequestMapping prm = new ParseRequestMapping();
	DocsUIHandler uiHandler = new DocsUIHandler();
	
	GlobalConfigLoadHandler fieldLoadHandler = new GlobalConfigLoadHandler();
	
	
	public void parseBasicInfo(Environment env,Map<RequestMappingInfo, HandlerMethod> map) {
		
		
		prm.parseBasicInfo(map);
		
		log.info("basicInfo:{}",JSON.toJSONString(DocsBasicInfo.ControllerInfoMap));
		
		new DocsUIHandler().data();
		
	}


	
	
	
	
	
}
